xsm: Use the dummy XSM module if XSM is disabled
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>
Thu, 10 Jan 2013 17:27:58 +0000 (17:27 +0000)
committerDaniel De Graaf <dgdegra@tycho.nsa.gov>
Thu, 10 Jan 2013 17:27:58 +0000 (17:27 +0000)
commit58f88f9eb2f2b16f1870c592c3310593039096e8
tree8e8eaf17808e9a4e348ab11c928c35a8898a68a0
parent408a9e56343b006c9e58a334f0b97dd2deedf9ac
xsm: Use the dummy XSM module if XSM is disabled

This patch moves the implementation of the dummy XSM module to a
header file that provides inline functions when XSM_ENABLE is not
defined. This reduces duplication between the dummy module and callers
when the implementation of the dummy return is not just "return 0",
and also provides better compile-time checking for completeness of the
XSM implementations in the dummy module.

Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Committed-by: Keir Fraser <keir@xen.org>
xen/common/domctl.c
xen/include/xsm/dummy.h [new file with mode: 0644]
xen/include/xsm/xsm.h
xen/xsm/dummy.c
xen/xsm/flask/hooks.c
xen/xsm/xsm_core.c